package cn.gogpay.dcb.api.dao;

import cn.gogpay.dcb.api.entity.Car;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

/**
 * @author jiaoming@gogpay.cn
 * @date 2019/11/12 18:58
 */
public interface CarRepository extends JpaRepository<Car, String> {

    /**
     * 查询电话
     *
     * @param phone
     * @param source
     * @return
     */
    Optional<List<Car>> findAllByCarPhoneNoAndSource(String phone, String source);
}
